#!/bin/bash
yum install -y epel-release
rm -rf /etc/yum.repos.d/epel-*.repo

sed -e 's|^mirrorlist=|#mirrorlist=|g' \
  -e 's|^#baseurl=https://download.example/pub|baseurl=https://mirrors.aliyun.com|g' \
  -i.bak /etc/yum.repos.d/epel.repo